import java.awt.*;
public class Triangle{
	private Point p1,p2,p3;
	public Triangle(Point p1,Point p2,Point p3){
		if(p1==null) p1 = new Point(0,0);
		if(p2==null) p2 = new Point(0,0);
		if(p3==null) p3 = new Point(0,0);
		this.p1=p1;  this.p2=p2; this.p3=p3;
	}

	public boolean equals(Object obj){
		if(!(obj instanceof Triangle)) return false;
		return this.equals((Triangle) obj);
	}
	public boolean equals(Triangle otherTriangle)
	{
		return (p1.equals(otherTriangle.p1) &&
                        p2.equals(otherTriangle.p2) &&
                        p3.equals(otherTriangle.p3));
	}
}
